package io.xiyou.account.api;

import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * Created by 西柚.
 */
@Validated
public interface IAccountInfoService {

    /**
     * 账户扣款
     *
     * @param xid
     * @param userId
     * @param money
     */
    void subtractAccountBalance(@NotBlank String xid, @NotNull Long userId, @NotNull BigDecimal money);

}
